package cn.easybuy.pojo;

import java.util.List;

/**
 * 用户表
 *
 * @author 江司令
 *
 */
public class User {

    private int id;
    private String userName;// 用户名
    private String loginName;// 真实姓名
    private String password; // 密码
    private int sex;// 性别 1男 0女
    private String identityCode;// 身份证
    private String email; // 电子邮箱
    private String mobile; // 手机
    private int type;// 类型 1后台 0前台
    private List<Address> adds;

    public List<Address> getAdds() {
        return adds;
    }

    public void setAdds(List<Address> adds) {
        this.adds = adds;
    }

    public User(int id, String userName, String loginName, String password,
                int sex, String identityCode, String email, String mobile, int type) {
        super();
        this.id = id;
        this.userName = userName;
        this.loginName = loginName;
        this.password = password;
        this.sex = sex;
        this.identityCode = identityCode;
        this.email = email;
        this.mobile = mobile;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getIdentityCode() {
        return identityCode;
    }

    public void setIdentityCode(String identityCode) {
        this.identityCode = identityCode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

}
